package com.woniuxy.entity;

import org.hibernate.validator.constraints.Range;

/**
 * @Author 罗蔚
 * @Date 2022/3/31 16:33
 * @Description TODO
 */
public class Clazz {
    String name;
    @Range(min=0,max=100)
    int num;
    ClassMaster classMaster;

    @Override
    public String toString() {
        return "Clazz{" +
                "name='" + name + '\'' +
                ", num=" + num +
                ", classMaster=" + classMaster +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public ClassMaster getClassMaster() {
        return classMaster;
    }

    public void setClassMaster(ClassMaster classMaster) {
        this.classMaster = classMaster;
    }
}
